TimerHandle_t singleShotTimer;
void singleShotCallback(TimerHandle_t hd)
{
  Serial.println("singleShot Callback ok.");  
}
TimerHandle_t repeatTimer;
void repeatCallback(TimerHandle_t hd)
{
  static uint32_t repeatCount = 1;
  Serial.printf("repeatCount: %d, current tick: %d\n", repeatCount++, xTaskGetTickCount());
}
void setup() {
  Serial.begin(115200);
  // put your setup code here, to run once:
  singleShotTimer = xTimerCreate("singleShot", 2000, pdFALSE, (void*)0, singleShotCallback);
  xTimerStart(singleShotTimer, portMAX_DELAY);
  repeatTimer = xTimerCreate("repeatTimer", 1234, pdTRUE, (void*)1, repeatCallback);
  xTimerStart(repeatTimer, portMAX_DELAY);
}

void loop() {
  // put your main code here, to run repeatedly:

}
